X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C734DE.09292BE0@onstor-exch02.onstor.net>; Wed, 10 Jan 2007 09:37:44 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C734DE.09292BE0"
Content-class: urn:content-classes:message
Subject: RE: How to get coredump on SSC
Date: Wed, 10 Jan 2007 09:37:43 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E01FF8BB6@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E01FF8B8F@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: How to get coredump on SSC
thread-index: Acc03BPThNmEBvr8R6e+ySCHGJGitAAABakwAAA5GyA=
From: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
To: "Brian DeForest" <brian.deforest@onstor.com>,
	"Ron Bhanukitsiri" <ronb@onstor.com>,
	"dl-Software" <dl-software@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C734DE.09292BE0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

There was a problem with cifsd coredumps at one time, it required a
sysctl to turn on coredump for setuid process, but it was fixed some
time ago, and we've been getting the cifsd cores from the customers
since then.=20

Check what  "sysctl kern.nosuidcoredump" returns, it should be 0.

If it is 1, run a command "systctl -w kern.nosuidcoredump=3D0".

> _____________________________________________=20
> From: 	Brian DeForest =20
> Sent:	Wednesday, January 10, 2007 9:25 AM
> To:	Ron Bhanukitsiri; dl-Software
> Cc:	Maxim Kozlovsky
> Subject:	RE: How to get coredump on SSC
>=20
> CC'ing Max.
>=20
> _____________________________________________
> From: Ron Bhanukitsiri=20
> Sent: Wednesday, January 10, 2007 9:24 AM
> To: dl-Software
> Subject: How to get coredump on SSC
>=20
> I've been trying to get cifsd (a daemon forked off by authentication
> agent)
> on the SSC to crash and produce a coredump with no success.
>=20
> I tried:
>=20
> - write to the memory pointed by null pointer (char *p =3D NULL;  *p =
=3D
> 0;)
> - assert()
>=20
> I have a trace at the point of the code that is doing this; so I know
> the code
> is being executed.
>=20
> Is there something (like in Linux) that I have to set in OpenBSD to
> get a
> corefile?
>=20
> Thanks,
> Ron B[ee]
>=20
>=20

------_=_NextPart_001_01C734DE.09292BE0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7650.28">
<TITLE>RE: How to get coredump on SSC</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">There was a problem =
with cifsd coredumps at one time, it required a sysctl to turn on =
coredump for setuid process, but it was fixed some time ago, and we've =
been getting the cifsd cores from the customers since then. </FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Check what&nbsp; =
&quot;sysctl kern.nosuidcoredump&quot; returns, it should be 0.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">If it is 1, run a =
command &quot;systctl -w kern.nosuidcoredump=3D0&quot;.</FONT>
</P>
<UL>
<P><FONT SIZE=3D1 =
FACE=3D"Tahoma">_____________________________________________ </FONT>

<BR><B><FONT SIZE=3D1 FACE=3D"Tahoma">From: &nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Tahoma">Brian DeForest&nbsp; </FONT>

<BR><B><FONT SIZE=3D1 FACE=3D"Tahoma">Sent:&nbsp;&nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Tahoma">Wednesday, January 10, 2007 9:25 AM</FONT>

<BR><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=3D1 =
FACE=3D"Tahoma">Ron Bhanukitsiri; dl-Software</FONT>

<BR><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Cc:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=3D1 =
FACE=3D"Tahoma">Maxim Kozlovsky</FONT>

<BR><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>=
</B> <FONT SIZE=3D1 FACE=3D"Tahoma">RE: How to get coredump on =
SSC</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">CC&#8217;ing =
Max.</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Tahoma">_____________________________________________<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">From:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Ron Bhanukitsiri<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Sent:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Wednesday, January 10, 2007 9:24 AM<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">To:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> dl-Software<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Subject:</FONT></B><FONT =
SIZE=3D2 FACE=3D"Tahoma"> How to get coredump on SSC</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I&#8217;ve been trying to get cifsd (a =
daemon forked off by authentication agent)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">on the SSC to crash and produce a =
coredump with no success.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I tried:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">- write to the memory pointed by null =
pointer (char *p =3D NULL;&nbsp; *p =3D 0;)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">- assert()</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have a trace at the point of the code =
that is doing this; so I know the code</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">is being executed.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Is there something (like in Linux) that =
I have to set in OpenBSD to get a</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">corefile?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Ron B[ee]</FONT>
</P>
<BR>
</UL>
</BODY>
</HTML>
------_=_NextPart_001_01C734DE.09292BE0--
